package com.cuit.zuke.system.oauth2;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @program: zuke
 * @description: oauth2Token
 * @author: KamTang
 * @create: 2022-04-07 19:46
 **/
public class Oauth2Token implements AuthenticationToken {
    private String token;

    public Oauth2Token(String token){
        this.token = token;
    }
    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
